<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="z" uri="zz"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>官网</title>
<meta name="Keywords" Content="免费,开发平台,快速开发管理系统,集成开发环境,零编码,动态配置方式" />
<meta name="Description" Content="通过Z平台集成开发环境，以零编码、动态配置的方式能够快速开发BS管理系统。" />
<%@include file="/views/common/common.jsp"%>
<style type="text/css">

</style>
<script type="text/javascript">
function cmslike(zid){
	if(zid!=null && zid!=''){
		window.location.href='cmslike?zid='+zid;
	}
}
</script>
</head>
<body>
	<%@include file="../head.jsp"%>
	<div class="container padding-bottom-20"> 
		<div class="row ">
			<div class="col-md-8">
				<div class="row">
					<div class="col-12 pt-3">
					${tn}
					</div>
					<div class="col-12 "><hr></div>
					<div class="col-12 font-weight-bold">${cms.title1}</div>
					<div class="col-12 text-secondary">发布时间：${cms.publish_time}</div>
					<div class="col-12 "><hr></div>
					<c:if test="${cms.cms_type=='0'}" >
						<div class="col-12 ">${cms.info}</div>
				  	</c:if>
				  	<c:if test="${cms.cms_type=='1'}" >
						<div class="col-12 ">${cms.img1}</div>
				  	</c:if>
				  	<c:if test="${cms.cms_type=='2'}" >
						<div class="col-12 p-2 "><video width="100%" src="${cms.video}" controls="true" poster="${cms.img1}" /></div>
				  	</c:if>
				  	<c:if test="${cms.cms_type=='3'}" >
						<c:forEach items="${cms.cms_info_detail_list}" var="cmd_detail">
							<div class="col-12 text-center p-2"><img src="${cmd_detail.img}" class="img-fluid"/></div>
						</c:forEach>
				  	</c:if>
				  	<c:if test="${cms.cms_type=='4'}" >
						<c:forEach items="${cms.cms_info_detail_list}" var="cmd_detail">
							<div class="col-12 p-2 "><video width="100%" src="${cmd_detail.file}" controls="true"  /></div>
						</c:forEach>
				  	</c:if>
					<div class="col-12 d-flex justify-content-center"><button type="button" onclick="cmslike('${cms.zid}')" class="btn btn-light border border-secondary"><i class="fa fa-thumbs-o-up"></i> 赞一个(${cms.likes_amount})</button></div>
					<div class="col-12 "><hr></div>
				</div>
			</div>
			<div class="col-md-4">
				<%@include file="right.jsp"%>
			</div>
		</div>
		
	</div>
	<%@include file="../foot.jsp"%>
</body>
</html>